package com.linyf.design.command;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/4/4 9:26
 **/
public class Main {

    public static void main(String[] args) {

        Command command = new ToolCommand();

        Invoker invoker = new Invoker();
        invoker.setCommand(command);
        invoker.action();


        command = new UserCommand();
        invoker.setCommand(command);
        invoker.action();
    }
}
